package cn.linstudy.feign;

import cn.linstudy.common.web.Result;
import cn.linstudy.domain.SeckillProductVo;
import cn.linstudy.feign.fallback.SeckillProductFeignApiFallback;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description seckill-service的feign
 * @Author XiaoLin
 * @Date 2021/5/16 18:53
 */
@FeignClient(name = "seckill-service",fallback = SeckillProductFeignApiFallback.class)
public interface SeckillProductFeignApi {

  @RequestMapping("/seckillProduct/querySeckillProductVOSByTime")
  Result<List<SeckillProductVo>> querySeckillProductVOSByTime(@RequestParam("time") int time);
}
